<?php
	class error extends BaseController{
		public function getData($in_params){
			if(isset($in_params['error'])){
				general::title("Niečo sa pokazilo");
				$exception = $in_params['error'];
				$this->view = constant('TEMPLATE_DIR').'error/error';
				general::debug('Exception details', $exception);
				$this->template_data['error'] = $exception->GetTraceAsString(); 
				$this->template_data['message'] = $exception->getMessage(); 
			}
		}
	}
?>